export function winToUnixPath(path: string): string {
    return path.replace(/\\/g, "/");
}

export function handleJudgmentExecute(
    context: unknown,
    bol: boolean,
    options: Handlebars.HelperOptions
): string | boolean {
    if (options.fn) {
        return bol ? options.fn(context) : options.inverse(context);
    }
    // eslint-disable-next-line no-return-assign
    return bol ? (options.hash.yes = true) : (options.hash.no = false);
}